(function($) {
    var i = 0;
    var objs = new Array();
    $.fn.uploadModal = function(options) {
        var html = '<div class="col-xs-12 col-sm-4"><span class="block input-icon input-icon-right"><a href="#myModal" data-toggle="modal" class="btn-sm btn" id="upload_image_a_' + i + '" i="' + i + '">上传文件</a></span></div>';
        $(this).parent().parent().after(html);
        $('#upload_image_a_' + i).click(function() {
            $('#upload_image_form_i').val($(this).attr('i'));
        });

        this.options = options;
        objs[i++] = this;

        $.fn.uploadModal.objs = objs;
    };
})(jQuery);